﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CreatingTypes
{
    internal class _06Indexers
    {

        string[] words = "The quick brown fox".Split();
        int[] intvalues = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
        public string this[int index]
        {
            get { return words[index]; }
            set { words[index] = value; }
        }

        public int this[int startIndex, int endIndex]
        {
            get { return intvalues[startIndex] + intvalues[endIndex]; }
        }

        int value2 = 0;
        static _06Indexers()
        {

        }


    }
}
